import { hasAtomicPermission } from "@/utils/auth";

export function hasUserGroupPermission() {
  const hasAdd = hasAtomicPermission("ZJXCA00268");
  const hasUpdate = hasAtomicPermission("ZJXCA00269");
  const hasDelete = hasAtomicPermission("ZJXCA00270");
  const hasSelect = hasAtomicPermission("ZJXCA00271");
  // 分配用户权限
  const hasAddUser = hasAtomicPermission("ZJXCA00272");
  const hasRemoveUser = hasAtomicPermission("ZJXCA00273");

  return {
    hasAdd,
    hasUpdate,
    hasDelete,
    hasSelect,
    hasAddUser,
    hasRemoveUser
  };
}
